//
//  MLAFundsVC.m
//  MagicLampApp
//
//  Created by Zheng on 2018/12/18.
//  Copyright © 2018 zheng.magic.lamp.app. All rights reserved.
//

#import "MLAFundsVC.h"
#import "MLAFundsPayableVC.h"
#import "MLAFundsPayRunWaterVC.h"

@interface MLAFundsVC ()

@end

@implementation MLAFundsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self configTitle:@"我的费用"];
    
    self.titlesArr = @[@"收支明细",@"应付款项"];
    [self.tableView reloadData];
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [super tableView:tableView didSelectRowAtIndexPath:indexPath];
    if (indexPath.row == 0) {
        CX_Log(@"收支明细");
        MLAFundsPayRunWaterVC *runWaterVC = [[MLAFundsPayRunWaterVC alloc] init];
        [self.navigationController pushViewController:runWaterVC animated:YES];
    } else if (indexPath.row == 1) {
        CX_Log(@"应付款项");
        MLAFundsPayableVC *payableVC = [[MLAFundsPayableVC alloc] init];
        [self.navigationController pushViewController:payableVC animated:YES];
    }
}

@end
